-- GENERATED SPELL FOR [Grunter] --


function spell0_8303(pUnit, Event) --@Berserker Charge,n/a--
pUnit:FullCastSpellOnTarget(19471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8303', 581, 1)
end

function spell1_8303(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(8260,pUnit)
pUnit:RegisterEvent('Sorts_8303', 4280, 1)
end

function spell2_8303(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8303', 8000, 1)
end

function Sorts_8303(pUnit, Event)
local choix_sorts_8303 = math.random(0, 2)
if choix_sorts_8303 == 0 then
pUnit:RegisterEvent('spell0_8303', 1, 1)
end
if choix_sorts_8303 == 1 then
pUnit:RegisterEvent('spell1_8303', 1, 1)
end
if choix_sorts_8303 == 2 then
pUnit:RegisterEvent('spell2_8303', 1, 1)
end
end

function mob8303_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8303', math.random(1500, 3000), 1)
end

function mob8303_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8303_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8303_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8303, 1, 'mob8303_Action')
RegisterUnitEvent(8303, 2, 'mob8303_Leave')
RegisterUnitEvent(8303, 3, 'mob8303_Kill')
RegisterUnitEvent(8303, 4, 'mob8303_Die')
